<script>
	export default {
		onLaunch: function() {
         console.log('---->' + uni.getStorageSync('TOKEN'));
         
         if(uni.getStorageSync('TOKEN')){
            uni.reLaunch({
               url:'/pages/index/index',
               success() {
                  // #ifdef APP-PLUS
                  plus.navigator.closeSplashscreen();
                  // #endif
               }
            })
         }
         else{
            uni.reLaunch({
               url:'/pages/login/login',
               success() {
                  // #ifdef APP-PLUS
                  plus.navigator.closeSplashscreen(); 
                  // #endif
               }
            })
         }
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
